﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Master.Master" AutoEventWireup="true" CodeBehind="MainAcademia.aspx.cs" Inherits="AcademiaInteligenteWeb.MainAcademia" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <h1>Academias
    </h1>
    <div id="acoes">
        <ul>
            <li>
                <a href="NewAcademia.aspx">Nova</a>
            </li>
            <%if (grdAcademia.Rows.Count>0 && grdAcademia.SelectedRow != null)
              {%>
            <li>
                <a href="NewAcademia.aspx?id=<%=grdAcademia.SelectedValue %>">Alterar</a>
            </li>
            <li>
                <asp:LinkButton Text="Excluir" Id="lnkExcluir" runat="server" OnClick="lnkExcluir_Click" />
            </li>
            <%} %>
        </ul>
    </div>
    <div id="dados">
        <asp:GridView ID="grdAcademia" runat="server" AllowPaging="true" AutoGenerateSelectButton="true">
            <AlternatingRowStyle CssClass="alterningRow" />
            <SelectedRowStyle CssClass="selectedRow" />
        </asp:GridView>
    </div>
</asp:Content>
